Skip to content

Add index check to getRecipeType()#4859

Merged
jurrejelle merged 1 commit into
GregTechCEu:1.20.1from
Taskeren:fix-recipe-aoob
Jun 20, 2026
Merged

Add index check to getRecipeType()#4859
jurrejelle merged 1 commit into
GregTechCEu:1.20.1from
Taskeren:fix-recipe-aoob

Conversation

@Taskeren

Copy link
Copy Markdown
Contributor

What

Fixed a bug where when the machine mode gets removed, the invalid index is still used, causing game to crash.

Implementation Details

If the mode is out-of-bound, it use the 0-indexed mode.

Additional Information

Discovered in StarT-Dev-Team/Star-Technology#510

@Taskeren Taskeren requested a review from a team as a code owner May 21, 2026 15:49
@gustovafing gustovafing added the Release: Patch - 0.0.X Smaller changes that either are bug fixes or very minor tweaks. label May 21, 2026
@jurrejelle jurrejelle added the type: bugfix General bug fixes label Jun 20, 2026
@jurrejelle jurrejelle merged commit bf200e3 into GregTechCEu:1.20.1 Jun 20, 2026
5 of 7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

1.20.1 Release: Patch - 0.0.X Smaller changes that either are bug fixes or very minor tweaks. type: bugfix General bug fixes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants